<template>
	<div>
		<view class="flex" >
			<text @click="sure">删除所选( {{selcetCount.length}} )</text>
		</view>
	</div>
</template>

<script>
	export default {
		props: {
			selcetCount:{
				type:Array,
				// 注意啊，这里要求我们需要使用工厂函数不能直接 【】
				default:function(){
					return []
				}
			}
		},
		created() {
			
		},
		data() {
			return {
				
			}
		},
		methods: {
			sure() {
				this.$bus.$emit('getDeletArray',this.selcetCount)
				this.$emit('delet','')
			}
		},
	}
</script>

<style lang='scss' scoped>
	.flex{
		position: absolute;
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		background-color: #C0C0C0;
		color: #000;
		width: 100%;
		height: 29px;
		font-size: 15px;
		bottom: -45px;
	}
	
	
	
</style>